home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / utilfil / picttoxb.sit / Picttoxbin ƒ / Picttoxbit doc next >
Text File  |  1989-04-08  |  3KB  |  59 lines

  1.      This is XBitmap, a utility program I wrote to convert
  2. Macintosh 'PICT' files, such as those created by MacDraw, into
  3. bitmap files suitable for use with X Window System programs.  It
  4. can also be used to view X Bitmap files, view 'PICT' files, and
  5. to save an image as a 'PICT' file.  As a 'PICT' viewer, the
  6. program is moderately useful even to those who have no dealings
  7. with the X Window system (lucky dogs!)
  8.  
  9.      This program exists to fill a gap in Jef Poskanzer's
  10. "Portable Bitmap Toolkit" (pbm), which can convert a number of
  11. formats to and from MacPaint files, but which has no way of
  12. accessing 'PICT' files.  Unfortunately for portability, I am
  13. neither smart enough nor patient enough to write a portable C
  14. program which can parse 'PICT' files on a non-Macintosh
  15. computer.  Therefore, I decided to let the Mac ToolBox call
  16. DrawPicture() do all the dirty work, and wrote the program as a
  17. Macintosh application.  [HW]ell, chances are that if you have
  18. 'PICT' files, then you have a Macintosh to view them on.
  19.  
  20.      This program is a first effort in writing a graphics
  21. converter-filter program, and has a lot of shortcomings:
  22.  
  23.      Saved 'PICT' files really contain a BitMap wrapped up in a
  24. Picture.  If you load an Object-Oriented 'PICT' file into
  25. XBitmap, and then print out a 'PICT' file, all of the objects
  26. are lost.  You get the same image, but it can no longer be
  27. scaled attractively, nor can separate objects be manipulated by
  28. a drawing program.
  29.  
  30.      Editing functions are non-existent.  I just wanted a
  31. converter.  Although the program does allow you to view an
  32. image, I included this mainly for debugging.
  33.  
  34.      X format Bitmap files are huge.  They should be compressed
  35. before uploading them to your X client machine.  Note:  "Bitmap"
  36. is correct for X, "BitMap" is correct for Macintosh, "bitmap" is
  37. correct in the general case.  X Bitmap is probably the worst
  38. non-Mac bitmap format I could have chosen, but since I currently
  39. do a lot of work on a machine running X Windows, and I just HAD
  40. to have a certain MacDraw document as my backdrop on this
  41. machine, I wrote the program this way.
  42.  
  43.      The only bitmap format supported is "X Bitmap."  Those
  44. desiring to create other formats, e.g. Sun raster, could convert
  45. first to X Bitmap, upload the file, then run pbm to get whatever
  46. other format you desire.  This is, admittedly, inconvenient.
  47.  
  48.      The program is free.  In lieu of releasing "versions" of it
  49. with increasing version number, I plan to upload the source code
  50. next, and wash my hands of it.  I am sending the compiled
  51. version now for the benefit of those with neither the
  52. inclination nor the ability to compile C programs on the
  53. Macintosh (more lucky dogs!)
  54.  
  55. Earle R. Horton. 23 Fletcher Circle, Hanover, NH 03755--
  56.     Graduate student, scientific programmer.
  57. He who puts his hand to the plow and looks back is not fit for
  58. the kingdom of winners.  In any case, 'BACK' doesn't work.
  59.